package com.qf.service.impl;

import com.qf.dao.TypeDao;
import com.qf.dao.impl.TypeDaoImpl;
import com.qf.entity.Type;
import com.qf.service.TypeService;

import java.sql.SQLException;
import java.util.List;

/**
 * @Author:YuhuaZhang
 * @Description
 * @Date:Created in 21:15 2021/11/4
 * @Modified By:
 */
public class TypeServiceImpl implements TypeService {
    @Override
    public List<Type> findAll() throws SQLException {

        TypeDao typeDao=new TypeDaoImpl();
        List<Type> types = typeDao.selectAll();
        return types;
    }
}